import Vue from 'vue'
import VueRouter from 'vue-router'



import mixinrouter from './modules/mixin'
import userrouter from './modules/user'
import Layout from '@/Layout/index'


Vue.use(VueRouter)





const routes = [
  {
    path: '/',
    component: Layout,
    redirect:'/MixinList'
  },
  {
    path:'/scrollview',
    name:'scrollview',
    component:()=>import('@/views/Mixin/components/lazyscroll/scrollview.vue'),
    
  },
  mixinrouter,
  userrouter
  
]

const router = new VueRouter({
  mode: 'hash',
  base: process.env.BASE_URL,
  routes
})

export default router
